import { BrowserModule, Title } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {HomeModule} from './home/home.module';
import {BoardModule} from './board/board.module';
import {MemberModule} from './member/member.module';
import {TopicModule} from './topic/topic.module';
import {BoardService} from './services/board.service';
import {LetterService} from './services/letter.service';
import {MemberService} from './services/member.service';
import {ThreadsService} from './services/threads.service';
import {ReplyService} from './services/reply.service';
import {HttpClientJsonpModule, HttpClientModule, HTTP_INTERCEPTORS} from '@angular/common/http';
import {CommonModule} from '@angular/common';
import {EmbedModule} from './embed/embed.module';
import {CookieService} from 'ngx-cookie-service';
import { MemberStorageService } from './services/member-storage.service';
import { UtilService } from './services/util.service';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AngularTimeoutInterceptor, DEFAULT_TIMEOUT } from './http-interceptors/angular-timeout-interceptor';
import { environment } from 'src/environments/environment';
import { MomentModule } from 'ngx-moment';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MessageModule } from './message/message.module';
import {AutosizeModule} from 'ngx-autosize';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    CommonModule,
    HttpClientModule,
    HttpClientJsonpModule,
    AppRoutingModule,
    HomeModule,
    BoardModule,
    MemberModule,
    TopicModule,
    MessageModule,
    EmbedModule,
    MomentModule,
    AutosizeModule
  ],
  providers: [
    Title,
    BoardService,
    LetterService,
    MemberService,
    MemberStorageService,
    CookieService,
    ThreadsService,
    ReplyService,
    UtilService,
    [{ provide: HTTP_INTERCEPTORS, useClass: AngularTimeoutInterceptor, multi: true }],
    [{ provide: DEFAULT_TIMEOUT, useValue: environment.restTimeout }]
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }